how to use php, html, css togther in a html template [closed]
Posted
by
pandu
on Programmers
See other posts from Programmers
or by pandu
Published on 2012-03-22T19:52:01Z
Indexed on
2012/03/22
23:37 UTC
Read the original article
Hit count: 391
php
I work with conversion of a html template in to PHP, normally i code like this
<div id="test">
<?php echo "<p>hello world</p>"; ?>
</div>
<?php
for($i=0;$i<=8;$i++){
echo "<ul>";
echo "<li>link1";
echo "<li>link2";
echo "</ul>";
} ?>
Suggest an easy way to use html tags in php code, other than using a template system, Also tell me how to use for, foreach loop, if else, along with html,CSS tags
© Programmers or respective owner